#include<stdio.h>

int main(void)
{
	int  num, one, ten, han;
	scanf("%d",&num);
	
	han = num/100;
	ten = (num-100*han)/10;
	one = num-100*han-10*ten;
	
	printf("%d %d %d", han, ten, one);
	
	return 0;
}
